package com.example.demo.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by liujiahao on 2019/1/16.
 */
@Mapper
public interface TeacherMapper {
    @Select("select name  from t_teacher where id=1")
    @DS("slave_1")
    String findAll();
}
